package com.hangxintong.common.feign;

import com.hangxintong.common.config.FeignConfiguration;
import com.hangxintong.common.utils.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Auther: tsj
 * @Date: 2021/1/7 13:26
 * @Description:远程查询省市区
 */
@FeignClient(value = "coalition", configuration = FeignConfiguration.class)
public interface ToolsCityFegin {

    @ApiOperation(value = "code id查询省市区", notes = "code id查询省市区", response = ResponseEntity.class, httpMethod = "POST")
    @PostMapping("/city/getCiteByAreaId")
    Result getCiteByAreaId(@RequestParam("areaId") String areaId);


}
